{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>竞价拍卖</strong></li>
		<li>http://auth.cn/web/auction/index.html</li>
	</ol>
</div>
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">添加拍卖</a>
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th>商品竞拍标题</th>
                                <th>商品图片</th>
                                <th>市场价</th>
                                <th>起拍价</th>
								<th>开始时间</th>
								<th>结束时间</th>
								<th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td>{$ad.title}</td>
                        		<td><img src="{$ad.thumb}"  width="50px"/></td>
                        		<td>￥{$ad.market_price}</td>
                        		<td>￥{$ad.pai_price}</td>
                        		<td>{$ad.start_time}</td>
                        		<td>{$ad.end_time}</td>
                        		<td>
                        			{if $ad.status == 1}
                        			进行中
                        			{else}
                        			关闭
                        			{/if}
                        		</td>
                        		<td>	
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 查看</a>
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}